class Demo{
	static int x;
	int y;
	static int getx() { return x; }
	void setx(int newx) { x = newx; }
	int gety() { return y; }
	void sety(int newy) { this.y = newy; }
}
public class P2_trystatic{
	public static void main(String args[]){
		
		Demo a = new Demo();
		Demo b = new Demo();

		a.setx(1); a.sety(2);
		b.setx(3); b.sety(4);

		System.out.println(a.getx());
		System.out.println(b.getx());
		System.out.println(a.gety());
		System.out.println(b.gety());
		System.out.println(Demo.getx());
		//System.out.println(Demo.gety());
	}
}